import React from 'react';
import { Router, Route, Switch, NavLink, Redirect } from 'dva/router';
import Film from './components/film';
import IndexPage from './routes/IndexPage';
{/* <NavLink to></NavLink>  路由跳转*/ }
function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/film" component={Film} />
        <Route path="/IndexPage" component={IndexPage} />

        <Redirect from='/' to='/film' exact component={IndexPage} />

      </Switch>
    </Router>
  );
}

export default RouterConfig;
